package aishua.com.mytestapplist;

import android.app.Application;
import android.content.Context;
import android.telephony.TelephonyManager;



import aishua.com.mytestapplist.utils.CTWalletLog;
import aishua.com.mytestapplist.utils.CrashHandler;

/**
 * Created by aishua on 2017/5/17.
 */

public class MyApplication extends Application {
    /** UIM��ICCID */
    public static String mICCID;

    /** �ͻ���UIM��SEID */
    public static String mSeID;

    public static String mImei;

    /** UIM��IMSI */
    public static String mImsi;
    public static String mPhoneType;
    public static String mURL;
    public static boolean isDraw = false;
    public static String oprAID;
    public static boolean mIsNotNFCDevices = false;
    @Override
    public void onCreate() {
        super.onCreate();
        TelephonyManager mTelephonyMgr = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
        mImei = mTelephonyMgr.getDeviceId();
        mImsi = mTelephonyMgr.getSubscriberId() == null ? "": mTelephonyMgr.getSubscriberId();
        mICCID = mTelephonyMgr.getSimSerialNumber() == null ? "": mTelephonyMgr.getSimSerialNumber();
        mSeID = mTelephonyMgr.getSimSerialNumber() == null ? "": mTelephonyMgr.getSimSerialNumber();
        mPhoneType = android.os.Build.MODEL;
//        mURL ="https://nfc.189.cn/apkp/TSMServer/applicationBusiness.action";
        mURL ="https://42.99.16.33:9001/apkp/TSMServer/applicationBusiness.action";
        oprAID = "D1560000401000135900020100000000";
        CTWalletLog.print("IMEI-->"+mImei);
        CTWalletLog.print("mImsi-->"+mImsi);
        CTWalletLog.print("mICCID-->"+mICCID);


    }
}
